package com.example.springboot_demo.dto.request;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

@Data
public class UserRequest {

    @NotBlank(message = "name 属性 不能为空")
    String name;

    @Range(min = 0,max = 130,message = "年龄只能在0-130之间")
    Integer age;
    String email;
    Integer sex;
    String password;
}
